package com.kws.merchant.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author : zhangbenting
 * @date : 2024/12/17 10:42
 * @Version: 1.0
 */
@TableName("tb_itme_user_calculation_results")
@Data
public class CalculationResultsEntity implements Serializable {

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键ID")
    private Long id;

    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    private Long userId;

    /**
     * 方案ID
     */
    @ApiModelProperty("方案ID")
    private Long schemeId;

    /**
     * 测算参数
     */
    @ApiModelProperty("测算参数")
    private String calculationParam;

    /**
     * 测算结果
     */
    @ApiModelProperty("测算结果")
    private String calculationResults;

    /**
     * 测算类型
     */
    @ApiModelProperty("测算类型")
    private String calculationType;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}
